import request from '@/utils/request'

const talents = {
  list (params) {
    return request.get('/kjrc/talents/list', { params })
  },
  myList (params) {
    return request.get('/kjrc/talents/myList', { params })
  },
  getRCInfo (id) {
    return request.get(`/kjrc/talents/detail/${id}`)
  },
  delete (id) {
    return request.post(`/kjrc/talents/delete/${id}`)
  },
  add (formData) {
    return request.post('/kjrc/talents/add', formData)
  },
  update (formData) {
    return request.post('/kjrc/talents/update', formData)
  },
  submit (formData) {
    return request.post('/kjrc/talents/submit', formData)
  },
  declareList (params) {
    return request.get('/kjrc/talents/declareList', { params })
  },
  myDeclareList (params) {
    return request.get('/kjrc/talents/myDeclareList', { params })
  },
  deliveryList (params) {
    return request.get('/kjrc/talents/deliveryList', { params })
  },
  myDeliveryList (params) {
    return request.get('/kjrc/talents/myDeliveryList', { params })
  },
}

export default talents;
